import Vue from 'vue'
import App from './App.vue'
import router from './router'
import i18n from './lang'
import Vant from 'vant';
import 'vant/lib/index.css';
import store from './store';

Vue.config.productionTip = false

Vue.use(Vant);

if (process.env.NODE_ENV === 'production') {
  // 禁用console.error
  console.error = () => {}
  // 禁用console.warn
  console.warn = () => {}
  // 禁用Vue的警告和错误提示
  Vue.config.productionTip = false
  Vue.config.devtools = false
  Vue.config.silent = true
}

new Vue({
  store,
  router,
  i18n,
  render: h => h(App),
}).$mount('#app')
